package com.bestvike.stone.spring.client.ssl;

import javax.net.ssl.X509TrustManager;
import java.security.cert.X509Certificate;

/**
 * Created by 许崇雷 on 2018/7/18.
 */
public final class SkipX509TrustManager implements X509TrustManager {
    static final SkipX509TrustManager DEFAULT = new SkipX509TrustManager();

    private SkipX509TrustManager() {
    }

    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType) {
    }

    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType) {
    }

    @Override
    public X509Certificate[] getAcceptedIssuers() {
        return null;
    }
}
